/*
 * Copyright (c) 2005 -2008 Reliable Source, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Mozilla Public License v.1.1,
 * BSD, and Eclipse Public License v1.0 which accompanies this
 * distribution and is available at:
 *
 * 		http://www.eclipse.org/legal/epl-v10.html
 * 		http://www.opensource.org/licenses/bsd-license.php
 * 		http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * Contributors:
 *     IBM Corporation	     -  http://ibm.com
 *     	- initial API and implementation
 *
 *     Reliable Source, Inc. - http://reliablesource.org
 *
 */
package org.reliablesource.model.core;

/**
 * 
 * ReliableElementFactory.java<br>
 * Created on: Feb 25, 2006<br>
 *
 * @author <a href="mailto:dennis.park@gmail.com">Dennis Park</a>
 *
 * @category factory, singleton
 * @since 1.0
 */
public class ReliableElementFactory implements IReliableElementFactory {

    private static final long serialVersionUID = 1L;

    private final static IReliableModel model;
    private final static ReliableElementFactory instance;

    int elementNum = 0;
    
    
    static{
        instance = new ReliableElementFactory();
        model = new ReliableModel();
    }
    
    
    private ReliableElementFactory(){
	//
    }

    public synchronized IReliableModel getApplicationModel() {
        return model;
    }

    public synchronized IReliableElement createElement(final String _type) {
        return null;
    }
    
    public static synchronized IReliableElementFactory getInstance(){
        return instance;
    }
}